<ul id="menu" class="list-group">
	<li class="list-group-item">
		<a href="javascript:" data-toggle="collapse" data-target="#user_detail">
			<span>平台信息管理</span>
		</a>
		<ul class="in" id="user_detail">
			<li class="user"><a href="/user/list.do">注册用户管理</a></li>
			<li class="region"><a href="/region/list.do">地区管理</a></li>
		</ul>

	</li>

    <li class="list-group-item">
        <a href="javascript:" data-toggle="collapse" data-target="#travel_detail">
            <span>游记管理</span>
        </a>
        <ul class="in" id="travel_detail">
            <li class="travel"><a href="/travel/list.do">待发布游记管理</a></li>
            <li class="travelRelease"><a href="/travelRelease/list.do">已发布游记管理</a></li>
            <li class="travelCommend"><a href="/travelCommend/list.do">游记推荐管理</a></li>
        </ul>
    </li>
    <li class="list-group-item">
        <a href="javascript:" data-toggle="collapse" data-target="#strategy_detail">
            <span>攻略管理</span>
        </a>
        <ul class="in" id="strategy_detail">
            <li class="strategy"><a href="/strategy/list.do">大攻略管理</a></li>
            <li class="strategyCatalog"><a href="/strategyCatalog/list.do">攻略分类管理</a></li>
            <li class="strategyDetail"><a href="/strategyDetail/list.do">攻略文章管理</a></li>
            <li class="strategyComment"><a href="/strategyComment/list.do">攻略评论管理</a></li>
            <li class="strategyTravel"><a href="/strategyTravel/list.do">大家都在看</a></li>
        </ul>
    </li>
    <li class="list-group-item">
        <a href="javascript:" data-toggle="collapse" data-target="#dailynews_detail">
            <span>日报管理</span>
        </a>
        <ul class="in" id="dailynews_detail">
            <li class="dailyNews"><a href="/dailyNews/list.do">日报内容</a></li>
        </ul>
    </li>
    <li class="list-group-item">
        <a href="javascript:" data-toggle="collapse" data-target="#systemNotice_detail">
            <span>系统通知</span>
        </a>
        <ul class="in" id="systemNotice_detail">
            <li class="systemNotice"><a href="/systemNotice/list.do">系统通知管理</a></li>
            <li class="release"><a href="/systemNotice/release.do">用户通知管理</a></li>
        </ul>
    </li>

    <li class="list-group-item">
        <a href="javascript:" data-toggle="collapse" data-target="#user_detail">
            <span>积分商城</span>
        </a>
        <ul class="in" id="commodity_detail">
            <li class="commodity"><a href="/commodity/list.do">商品管理</a></li>
            <li class="stock"><a href="/stock/list.do">库存管理</a></li>
            <li class="commodityCatalog"><a href="/commodityCatalog/list.do">商品分类管理</a></li>
            <li class="transactionRecord"><a href="/transactionRecord/list.do">交易记录</a></li>
        </ul>

    </li>
</ul>

<script type="text/javascript">
    var url = location.pathname;
    url = url.substring(1);
    var indexE = url.indexOf("/");
    var currentMenu = url.substring(0, indexE);
    $(".in li."+currentMenu).addClass("active");
</script>
